import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
// 引入重置样式
import '@/assets/css/reset.css'
// 引入iconfont
import '@/assets/fonts/iconfont.css'
// 引入element-ui
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
Vue.use(ElementUI);
// 引入时间处理函数
import {dateFmt,fprice} from '@/filters'
import axios from 'axios'
import * as ehcarts from 'echarts'
// main.js
import microApp from '@micro-zoe/micro-app'

microApp.start()


Vue.prototype.$echarts = ehcarts
Vue.prototype.$axios = axios
Vue.config.productionTip = false

import * as filters from '@/filters'

Object.keys(filters).forEach(item=>{
  Vue.filter(item,filters[item])
})


// 全局时间处理过滤器
// Vue.filter('formatDate',function(v){
//   return dateFmt(v)
// })

// // 全局千分位
// Vue.filter('fprice',function(v){
//   return fprice(v)
// })

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
